curl -X POST -H 'Content-Type: application/json' -d '{"message":"Aug  1 08:43:51 subuntu multipathd[773]: sda: failed to get udev uid: Invalid argument", "type":"log", "fields":{"type":"syslog"}, "fields_under_root": true}' 172.16.188.153:8000

curl -X POST -H 'Content-Type: application/json' -d '{"message":"Aug  1 08:43:51 ssssubuntu multipathd[773]: sda: failed to get udev uid: Invalid argument", "type":"syslog", "input":{"type":"log"}, "fields_under_root": true}' http://172.16.188.153:8000

curl -X POST -H 'Content-Type: application/json' -d '{"message":"Aug  1 08:43:51 aaaaubuntu multipathd[773]: sda: failed to get udev uid: Invalid argument", "type":"syslog", "input":{"type":"syslog"}, "fields_under_root": true, "host":{"name":"test"}}' 172.16.188.153:8000


{
        "_index" : "mytest-2024.08.02",
        "_type" : "_doc",
        "_id" : "eM8ZEZEBQw8uFEcCNaJ7",
        "_score" : 1.0,
        "_source" : {
          "headers" : {
            "content_type" : "application/json",
            "http_host" : "172.16.188.153:8000",
            "request_path" : "/",
            "http_accept" : "*/*",
            "content_length" : "172",
            "http_user_agent" : "curl/8.7.1",
            "http_version" : "HTTP/1.1",
            "request_method" : "POST"
          },
          "host" : "172.16.188.153",
          "tags" : [
            "_grokparsefailure"
          ],
          "type" : "log",
          "@timestamp" : "2024-08-02T03:19:10.349Z",
          "message" : "Aug  1 08:43:51 ssssubuntu multipathd[773]: sda: failed to get udev uid: Invalid argument",
          "@version" : "1",
          "fields_under_root" : true,
          "fields" : {
            "type" : "syslog"
          }
        }
      }

  {
        "_index" : "syslog-multipathd-2024.08.02",
        "_type" : "_doc",
        "_id" : "Gs8DEZEBQw8uFEcCiKAL",
        "_score" : 1.0,
        "_source" : {
          "host" : {
            "name" : "filebeat"
          },
          "received_from" : """{"name":"filebeat"}""",
          "input" : {
            "type" : "log"
          },
          "multipathd" : {
            "uid" : "%{uid}"
          },
          "message" : "Aug  1 08:42:31 subuntu multipathd[773]: sda: add missing path",
          "syslog_message" : "sda: add missing path",
          "received_at" : "2024-08-02T02:52:28.007Z",
          "agent" : {
            "type" : "filebeat",
            "hostname" : "filebeat",
            "name" : "filebeat",
            "version" : "7.9.1",
            "ephemeral_id" : "125fc0a3-a815-4836-9315-87aa35ffee95",
            "id" : "0ffc9029-23de-494f-b2f9-4c5761350372"
          },
          "type" : "syslog",
          "tags" : [
            "beats_input_codec_plain_applied",
            "_dateparsefailure",
            "_grokparsefailure"
          ],
          "syslog_hostname" : "subuntu",
          "syslog_program" : "multipathd",
          "@timestamp" : "2024-08-02T02:52:28.007Z",
          "syslog_pid" : "773",
          "@version" : "1",
          "ecs" : {
            "version" : "1.5.0"
          },
          "syslog_timestamp" : "Aug  1 08:42:31",
          "log" : {
            "offset" : 0,
            "file" : {
              "path" : "/usr/share/filebeat/logs/syslog"
            }
          }
        }
      }

